package com.rwind.drill.service.impl;

import com.rwind.drill.repository.ApacheDrillRestUrlRepository;
import com.rwind.drill.service.ApacheDrillRestUrlSevice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ApacheDrillRestUrlSeviceImpl implements ApacheDrillRestUrlSevice {

  @Autowired
  private ApacheDrillRestUrlRepository apacheDrillRestUrlRepository;

  @Override
  public String getEventsFromTopic(String topicName, String limit) throws Exception {
   return apacheDrillRestUrlRepository.getEventsFromTopic(topicName, limit);
  }
}